package com.yingxin.yx.framework.wx;

import lombok.Data;

import java.io.Serializable;


@Data
public class WeixinAccessToken implements Serializable {
    private static final long serialVersionUID = 6369625123403343963L;

    private String access_token;    // 正确获取到 access_token 时有值
    private Integer expires_in;        // 正确获取到 access_token 时有值
    private String refresh_token;    //
    private String openid;    //
    private String scope;    //
    private String unionid;    //
    private Integer errcode;        // 出错时有值
    private String errmsg;            // 出错时有值
    private Long expiredTime;        // 正确获取到 access_token 时有值，存放过期时间

    public String getAccessToken() {
        return access_token;
    }

    public Integer getExpiresIn() {
        return expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public String getOpenId() {
        return openid;
    }

}
